package sprint2;

import java.io.Serializable;

/**
 *
 * @author Vincent van Andel
 * @author Fabian Mengerink
 *
 */

public class Enemy implements Serializable  {

	private String name;
	private String filename;
	private double hpMax;
	private double hpNow;
	private double armour;
	private double power;
	private double hitrating;
	private double dodgerating;
	private int speed;
	// private String hpString = hpBalkmax.substring(0,(int)(50 * hpNowME / hpMaxME)) +
	// hpBalkmin.substring(0,(50-(int)(50* hpNowME / hpMaxME)));
	private double critChance;
	private double critDamage;
	private boolean beaten;

	public Enemy(String name, String filename, double hpMax, double armour,
			double power, double hitrating, double dodgerating, int speed,
			double critChance, double critDamage) {
		this.name = name;
		this.filename = filename;
		this.hpMax = hpMax;
		this.hpNow = hpMax;
		this.armour = armour;
		this.power = power;
		this.hitrating = hitrating;
		this.dodgerating = dodgerating;
		this.speed = speed;
		this.critChance = critChance;
		this.critDamage = critDamage;
	}
	
	public Enemy(String name, double hpMax, double armour,
			double power, double hitrating, double dodgerating, int speed,
			double critChance, double critDamage) {
		this.name = name;
		this.hpMax = hpMax;
		this.hpNow = hpMax;
		this.armour = armour;
		this.power = power;
		this.hitrating = hitrating;
		this.dodgerating = dodgerating;
		this.speed = speed;
		this.critChance = critChance;
		this.critDamage = critDamage;
	}

	public void setHpMax(double hpMax) {
		this.hpMax = hpMax;
	}

	public void setHpNow(double hpNow) {
		this.hpNow = hpNow;
	}

	public void setArmour(double armour) {
		this.armour = armour;
	}

	public void setPower(double power) {
		this.power = power;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public void setCritChance(double critChance) {
		this.critChance = critChance;
	}

	public void setCritDamage(double critDamage) {
		this.critDamage = critDamage;
	}

	public double getHpMax() {
		return this.hpMax;
	}

	public double getHpNow() {
		return this.hpNow;
	}

	public double getArmour() {
		return this.armour;
	}

	public double getPower() {
		return this.power;
	}

	public double getHitrating() {
		return this.hitrating;
	}

	public double getDodgerating() {
		return this.dodgerating;
	}

	public int getSpeed() {
		return this.speed;
	}

	public double getCritChance() {
		return this.critChance;
	}

	public double getCritDamage() {
		return this.critDamage;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFilename() {
		return this.filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public boolean isBeaten() {
		return this.beaten;
	}

	public void setBeaten(boolean beaten) {
		this.beaten = beaten;
	}

}